/**
 * Created by liuhongwei   not qingming .
 */

import {
  StackNavigator,
  TabNavigator,
} from 'react-navigation';

import List from './pages/List';
import Detail from './pages/Detail';
import Cinemas from './pages/Cinemas';
import Personal from './pages/personal'
import MyMovies from './pages/MyMovies';
import Login from './pages/login';
import Login1 from './pages/login1'; 
import Orderin from './pages/orderin';
import Money from './pages/money';
import Foodsetwarp from './pages/pagefirst/foodsetwarp';
import Chartwarp from './pages/pagefirst/chartwarp';
import Chartreport from './pages/pagefirst/chartreport';
import Foodgood from './pages/pagefirst/foodgoods';
import FoodGoodsAdd from './pages/pagefirst/foodgoodsadd';
import FoodTypeAdd from './pages/pagefirst/foodtypeadd';
import Chose from './commons/chose';
import CheckBoxx from './commons/checkbox';
import FoodType from './pages/pagefirst/foodtype';
import FoodGuige from './pages/pagefirst/foodguige';
import FoodGuigeAdd from './pages/pagefirst/foodguigeadd';
import FoodChart from './pages/pagefirst/foodchart';
import Employee from './pages/pagefirst/employee';
import EmployeeAdd from './pages/pagefirst/employeeadd';
import TuiCai from './pages/pagethird/tuicai';
import ToPay from './pages/pagesecond/topay';
import RenGong from './pages/pagefirst/chart1rengong';
import FenXiang from './pages/pagefirst/chart1fenxiang';
import XiaoShow from './pages/pagefirst/chart1xiaoshou'

const MyTab = TabNavigator({
  List: {screen: Money},
  Cinemas: {screen: Cinemas},
  MyMovies: {screen: MyMovies},
  Personal: {screen: Personal},
}, {
  tabBarPosition: 'bottom',
  tabBarOptions: {
    activeTintColor: '#0390EB',
    inactiveTintColor: '#fff',
    showIcon:'true',
    style:{
      height:20
    },
    labelStyle: {
      fontSize: 12,
    },
    style: {
      backgroundColor: '#222',
    },
  }

});

const MyApp = StackNavigator({
  MyTab: {screen: MyTab},
  Detail: {screen: Detail},
  Login:{screen:Login},
  Login1:{screen:Login1},
  Orderin:{screen:Orderin},
  Foodsetwarp:{screen:Foodsetwarp},
  Chartwarp:{screen:Chartwarp},
  Chartreport:{screen:Chartreport},
  Foodgood:{screen:Foodgood},
  FoodGoodsAdd:{screen:FoodGoodsAdd},
  Chose:{screen:Chose},
  FoodTypeAdd:{screen:FoodTypeAdd},
  FoodType:{screen:FoodType},
  FoodGuige:{screen:FoodGuige},
  FoodGuigeAdd:{screen:FoodGuigeAdd},
  FoodChart:{screen:FoodChart},
  Employee:{screen:Employee},
  EmployeeAdd:{screen:EmployeeAdd},
  TuiCai:{screen:TuiCai},
  ToPay:{screen:ToPay},
  CheckBoxx:{screen:CheckBoxx},
  RenGong:{screen:RenGong},
  FenXiang:{screen:FenXiang},
  XiaoShow:{screen:XiaoShow}
}, {
  initialRouteName: 'Chartwarp',
  headerMode: 'screen'
});

export default MyApp;